package com.ruibang.glass.iso.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @Author: songJinKang
 * @CreateTime: 2024-06-18  20:11
 * @Description: TODO:体系目标指标
 * @Version: 1.0
 */

@Data
@TableName("g_iso_target_indicators")
public class TargetIndicators extends BaseEntity {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键ID")
    private String id;

    @ApiModelProperty("类型（字典：target_indicators_type）")
    @NotBlank(message = "类型不可为空")
    private String type;

    @ApiModelProperty("文件名称")
    @NotBlank(message = "文件名称不可为空")
    private String fileName;

    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty("附件")
    @NotEmpty(message = "附件不可为空")
    @TableField(exist = false)
    private List<String> fileIds;

    @ApiModelProperty("菜单ID")
    @NotEmpty(message = "菜单ID不可为空")
    @TableField(exist = false)
    private String menuId;

    @ApiModelProperty("审批状态")
    private String approveStatus;

    @ApiModelProperty(value = "当前审批人名称")
    @TableField(exist = false)
    private String currentAuditBy;

    @ApiModelProperty(value = "当前审批人ID")
    @TableField(exist = false)
    private String approveUserId;

    @ApiModelProperty(value = "当前节点名称")
    @TableField(exist = false)
    private String nodeName;

    @ApiModelProperty(value = "当前节点Key")
    @TableField(exist = false)
    private String nodeKey;

    @ApiModelProperty(value = "流程实例Id")
    @TableField(exist = false)
    private String processInstanceId;
}
